package com.cuit.qx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cuit.qx.bean.Warning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author:wjd
 * @Description:
 * @date:Created in 15:02 2020/9/21
 * @Modified By:
 */
@Mapper
public interface WarningMapper extends BaseMapper<Warning> {

    //根据ID修改状态
    int updateStateById(@Param("stationId") String stationId);

     //根据时间、县域查询最大风力
    List<Map> selectWind(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("addrCounty") String addrCounty);

    // 根据多个预警id删除预警信息
    int deleteIds(List<String> asList);
    //批量入库
    Boolean insertBatch(List<Warning> warnings);
}
